package com.pets.web.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("创建订单实体类")
public class CreateOrderRequest {

    @NotBlank(message = "openId不能为空")
    @ApiModelProperty(value = "openId")
    private String openId;

    @NotNull
    @ApiModelProperty(value = "0-为报恩寺购买 1-为自己购买")
    private Integer type;

    @NotNull
    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @NotNull
    @ApiModelProperty(value = "重量")
    private Integer weight;

    @ApiModelProperty(value = "用户姓名")
    @NotBlank(message = "用户姓名不能为空")
    private String name;

    @ApiModelProperty(value = "用户手机号")
    private String phone;

    @NotBlank(message = "用户地址不能为空")
    @ApiModelProperty(value = "用户地址")
    private String address;

    @NotBlank(message = "平台code不能为空")
    @ApiModelProperty(value = "平台code")
    private String pfCode;

}
